<template>
  <div class="home">
    <header-nav></header-nav>
    <div class="home-container">
      <img src="../../static/images/no1.jpg" alt="">
    </div>
    <main>
      <div class="container">
        <div class="modal">
          <img src="../../static/images/no1.jpg" alt="">
          <p>医生模块</p>
        </div>
        <div class="modal">
          <img src="../../static/images/no1.jpg" alt="">
          <p>咨询师模块</p>
        </div>
        <div class="modal">
          <img src="../../static/images/no1.jpg" alt="">
          <p>量表、问卷模块</p>
        </div>
        <div class="modal">
          <img src="../../static/images/no1.jpg" alt="">
          <p>电子档案模块</p>
        </div>
      </div>
    </main>
  </div>
</template>
<script>
import headerNav from "@/components/header-nav";

export default {
  name: "Home",
  data() {
    return {};
  },
  components: {
    "header-nav": headerNav
  },
    mounted(){
      this.$store.commit("changeIndex", 0);
  }
};
</script>
<style lang="scss" scoped>
@import "../assets/css/base.scss";
.home-container {
  padding-top: 60px;
  height: calc(100vh - 60px);
}

.home-container img {
  width: 100%;
  height: 100%;
}

main .container {
  //min-width: 964px;
  margin: 0 30px;
  padding: 30px 0;
  box-sizing: border-box;
}
.container .modal {
  float: left;
  width: 25%;
  padding: 50px;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.3s ease;
}
.container .modal:hover {
  transform: scale(1.1);
}
.modal img {
  width: 100%;
}
.container p {
  text-align: center;
  margin: ptr(10px) 0;
  font-size: 16px;
}
//移动端
@media (max-width: 1024px) {
  .home-container {
    height: calc(100vh - 52px) !important;
    padding-top: 52px !important;
  }
  main .container {
    padding: ptr(30px);
    margin: 0;
    min-width: 0;
  }
  .container .modal {
    padding: 20px;
  }
}
@media (min-width: 750px) and (max-width: 1024px) {
  .container .modal {
    width: 40%;
  }
  .container .modal:nth-child(odd) {
  }
  .container .modal:nth-child(even) {
    float: right !important;
  }
}
//手机
@media (max-width: 750px) {
  .container .modal {
    margin: 0;
    width: 100%;
    display: block;
    float: none;
  }
}
</style>
